package at.ac.tuwien.mg.bean;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Order implements Serializable {
	private static final long serialVersionUID = -3042252542845343254L;
	private List<Item> order;
    private String supplier;
    private Boolean acknolwedged;
    private Boolean canceled;
    private String test;
    private Boolean deliveryOK = false;
	
    public Order() {
        test = "Test-Start";
	}
	
	public Order(List<Item> order) {
	        this.order = order;
	        test = "Test-Start";
	}
	
	public Order(List<Item> order, String supplier) {
	        this.order = order;
	        this.supplier = supplier;
	        test = "Test-Start";
	}
	
	public List<Item> getOrder() {
	        return order;
	}
	
	public void setOrder(List<Item> order) {
	        this.order = order;
	}
	
	public String getSupplier() {
	        return supplier;
	}
	
	public void setSupplier(String supplier) {
	        this.supplier = supplier;
	}

	public Boolean getAcknolwedged() {
		return acknolwedged;
	}
	
	public void setAcknolwedged(Boolean acknolwedged) {
		this.acknolwedged = acknolwedged;
	}

	public Boolean getCanceled() {
		return canceled;
	}

	public void setCanceled(Boolean canceled) {
		this.canceled = canceled;
	}

	public String getTest() {
		return test;
	}

	public void setTest(String test) {
		this.test = test;
	}

	public Boolean getDeliveryOK() {
		return deliveryOK;
	}

	public void setDeliveryOK(Boolean deliveryOK) {
		this.deliveryOK = deliveryOK;
	}
	
}
